<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
        
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{str_replace text="`viewing_topics_posted_by_suser`" sUser="`$sUser`" }</td>
        </tr>
        </table>
        
        {if $aTopics}
            <table style="width:100%;" cellpadding="5" cellspacing="1">
                <tr>
                    <td style="font-size:8pt;width:40%;font-size:8pt;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }</td>
                    <td style="font-size:8pt;width:60%;">
                    {include file="`$sRootPath`/_blocks/pager.html"}
                    </td>
                </tr>
            
            </table>
            
            
            <table style="width:100%;" class="forum-1" cellpadding="5" cellspacing="1">
                <tr>
                    <td style="width:20%;"><b>{language text="forum"}</b></td>
                    <td style="width:40%;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="topic"}</b></span></td>
                    <td style="width:10%;text-align:center;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="replies"}</b></span></td>
                    <td style="width:10%;text-align:center;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="views_543"}</b></span></td>
                    <td style="width:30%;text-align:center;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="last_reply"}</b></span></td>
                </tr>
            </table>
        
            <table style="width:100%;" class="forum-2" cellpadding="5" cellspacing="1">
            {foreach from=$aTopics item=aTopic}
                <tr>
                    <td style="width:20%;font-size:9pt;" class="forum-3">
                        <a href="{url link='public.forum.topics' id=$aTopic.forum_id}">{$aTopic.forum_title}</a>
                    </td>
                    <td style="width:40%;font-size:8pt;" class="forum-3">
                        <div style="font-size:10pt;"><a href="{url link='public.forum.posts' id=$aTopic.id}">{$aTopic.title}</a></div>
                        <div style="padding:5px;">{language text="posted_on"} {$aTopic.time|date_format:$sDateFormat}</div>
                    </td>
                    <td style="width:10%;text-align:center;font-size:8pt;" class="forum-3">{$aTopic.total_replies|default:'0'}</td>
                    <td style="width:10%;text-align:center;font-size:8pt;" class="forum-3">{$aTopic.view|default:'0'}</td>
                    <td style="width:30%;text-align:center;font-size:8pt;" class="forum-3">{$aTopic.last_reply.time|date_format:$sDateFormat} 
                    {if $aTopic.last_time}
                        {$aTopic.last_time|date_format:$sDateFormat}<br />
                        <a href="{url link='public.user' name=$aTopic.last_user}">{$aTopic.last_user}</a></td>
                    {else}
                        {language text="no_replies_yet"}
                    {/if}
                </tr>
            {/foreach}
            </table>
            
            <table style="width:100%;" cellpadding="5" cellspacing="1">
                <tr>
                    <td style="font-size:8pt;width:40%;font-size:8pt;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }</td>
                    <td style="font-size:8pt;width:60%;">
                    {include file="`$sRootPath`/_blocks/pager.html"}
                    </td>
                </tr>
            </table>
            
            </div>
        {else}
            <br />
            {str_replace text="`no_topics_have_been_found_for_suser`" sUser="`$sUser`" }
            <br /><br /><br /><br /><br /><br />
        {/if}
        
    </td>
</tr>
</table>